package com.example.demo.mapper;

import com.example.demo.entity.Orders;
import com.example.demo.entity.OrdersDtl;
import com.example.demo.entity.vo.OrderSelectVo;
import com.example.demo.entity.vo.OrderShoppingCartVo;

import java.util.List;

public interface OrderMapper {

    List<OrderShoppingCartVo> list(List<Long> shoppingCartIds);

    int create(Orders orders);

    int batchCreate(List<OrdersDtl> ordersDtls);

    int deleteByShoppingCartId(List<Long> shoppingCartIds);

    List<OrderSelectVo> select(Long userId);


}
